# -*- coding: utf-8 -*-


INSTALLED_BLUEPRINTS = [
    'auth.v1:auth_bp',
    'api.v1:api_bp',
]

SQLALCHEMY_TRACK_MODIFICATIONS = False

SESSION_EXPIRATION = 60 * 60 * 24 * 7
AUTH_USER_CLASS = 'models:User'
AUTH_ADMIN_CLASS = 'models:Admin'
USER_REDIS_EXPIRATION = 60 * 60 * 24 * 2
USER_ID_ATTR_NAME = 'openid'
ADMIN_ID_ATTR_NAME = 'id_'

PAGE_SIZE = 15

LOGGER_FOLDER = 'web_wechat'

TENCENT_ACCESS_TOKEN_DEFAULT_EXPIRATION = 7200
TENCENT_ACCESS_TOKEN_EXPIRATION_TOLERANCE = 200
